<?php
ini_set('display_errors', 'On');
error_reporting(E_ALL ^ E_NOTICE);
// change the following paths if necessary
$yii=dirname(__FILE__).'/framework/yii.php';
$config=dirname(__FILE__).'/protected/config/main.php';

date_default_timezone_set('Asia/Shanghai');
header('Content-Type: text/html; charset=utf-8');
// remove the following line when in production mode
if ($_GET['debug'] == 'mystery_debuy') {
    defined('YII_DEBUG') or define('YII_DEBUG', true);
} else {
    defined('YII_DEBUG') or define('YII_DEBUG', false);
}


include dirname(__FILE__).'/protected/components/functions.php';
set_time_limit(0);
ini_set('memory_limit', '500M');
require_once($yii);
Yii::createWebApplication($config)->run();
